from celery import shared_task
from django.conf import settings
from .sms import SMS

import logging
logger = logging.getLogger('django')
@shared_task(name='send_sms')
def task_send_sms(sms_phone, sms_content):
    sms = SMS(sms_phone=sms_phone,sms_content=sms_content)

    result = sms.send_sms()
    return result